import request from '@/utils/request'

// 查询库存盘点任务列表
export function listTakeStockPlan(query) {
  return request({
    url: '/system/TakeStockPlan/list',
    method: 'get',
    params: query
  })
}

// 查询库存盘点任务详细
export function getTakeStockPlan(id) {
  return request({
    url: '/system/TakeStockPlan/' + id,
    method: 'get'
  })
}

// 新增库存盘点任务
export function addTakeStockPlan(data) {
  return request({
    url: '/system/TakeStockPlan',
    method: 'post',
    data: data
  })
}

// 修改库存盘点任务
export function updateTakeStockPlan(data) {
  return request({
    url: '/system/TakeStockPlan',
    method: 'put',
    data: data
  })
}

// 删除库存盘点任务
export function delTakeStockPlan(id) {
  return request({
    url: '/system/TakeStockPlan/' + id,
    method: 'delete'
  })
}
